package us.esme.managers
{
	
	import flash.display.NativeWindowResize;
	
	import mx.core.Application;
	
	public class WindowManager{
		
		public function minimize():void{
			try{
				Application.application.systemManager.stage.nativeWindow.minimize();
			}catch(e:Error){ }
		}

		public function maximize():void{
			try{
				Application.application.systemManager.stage.nativeWindow.maximize();
			}catch(e:Error){ }
		}

		public function close():void{
			try{
				Application.application.systemManager.stage.nativeWindow.close();
				Application.application.notificationWindow.close();
			}catch(e:Error){ }
		}
		
		public function move():void{
			try{
				Application.application.systemManager.stage.nativeWindow.startMove();
			}catch(e:Error){ }
		}

		public function resize():void{
			try{
				Application.application.systemManager.stage.nativeWindow.startResize(NativeWindowResize.BOTTOM_RIGHT);
			}catch(e:Error){ }
		}
		
	}
}